package Emp;

public class Lai_Test {
    public static void main(String[] args) {
        Employee emp[] = {
                new BasePlusSalesEmployee("赖奕衡", 12, 11000, 1.56, 2000),
                new HourlyEmployee("赖奕撇", 11, 18, 360),
                new SalariedEmployee("赖奕竖", 10, 3500),
                new SalesEmployee("赖奕捺", 9, 6000, 1.5)
        };
        System.out.println("七月份工资：");
        for (int i = 0; i < emp.length; i++) {
            System.out.println("姓名：" + emp[i].getName() + "   生日月份：" + emp[i].getMonth() + "     工资为：" + emp[i].getSalary(7));
        }
    }
}